﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 报修管理
/// </summary>
[SugarTable("Maintenances","报修管理")]
[Tenant("1300000000001")]
public class Maintenances  : EntityBase
{
    /// <summary>
    /// 工单编号
    /// </summary>
    [SugarColumn(ColumnName = "Mnumber", ColumnDescription = "工单编号", Length = 32)]
    public string? Mnumber { get; set; }
    
    /// <summary>
    /// 工单状态
    /// </summary>
    [SugarColumn(ColumnName = "Mstatus", ColumnDescription = "工单状态")]
    public int? Mstatus { get; set; }
    
    /// <summary>
    /// 工单类别
    /// </summary>
    [SugarColumn(ColumnName = "Mcategory", ColumnDescription = "工单类别", Length = 32)]
    public string? Mcategory { get; set; }
    
    /// <summary>
    /// 报修时间
    /// </summary>
    [SugarColumn(ColumnName = "RepairTime", ColumnDescription = "报修时间", Length = 32)]
    public string? RepairTime { get; set; }
    
    /// <summary>
    /// 派单人
    /// </summary>
    [SugarColumn(ColumnName = "Dispatch", ColumnDescription = "派单人", Length = 32)]
    public string? Dispatch { get; set; }
    
    /// <summary>
    /// 创建者部门Id
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgId", ColumnDescription = "创建者部门Id")]
    public long? CreateOrgId { get; set; }
    
    /// <summary>
    /// 创建者部门名称
    /// </summary>
    [SugarColumn(ColumnName = "CreateOrgName", ColumnDescription = "创建者部门名称", Length = 64)]
    public string? CreateOrgName { get; set; }
    
    /// <summary>
    /// 报修人
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Repair", ColumnDescription = "报修人")]
    public long Repair { get; set; }
    
    /// <summary>
    /// 报修位置
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "location", ColumnDescription = "报修位置")]
    public long location { get; set; }
    
    /// <summary>
    /// 工单类别
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Tickets", ColumnDescription = "工单类别")]
    public long Tickets { get; set; }
    
    /// <summary>
    /// 接单人
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Takers", ColumnDescription = "接单人")]
    public long Takers { get; set; }
    
}
